﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Milan.Deploy
{
	/// <summary>
	/// This runs a service in the background to detect if a new version of the product is available on the system.
	/// </summary>
	public class UpgradeScanner : PeriodicScanner
	{
		/// <summary>
		/// Initiate the upgrade scanner with a start delay of 60 seconds and a periodic delay of one hour.
		/// </summary>
		/// <param name="application"></param>
		public UpgradeScanner(Application application ) : base(application, 60*60, 60 )
		{
			//m_download = new Download();
		}

		/// <summary>
		/// This immediately performs a check for a new upgrade
		/// </summary>
		/// <returns></returns>
		protected override void RunOnce()
		{
			//m_download.IsNewVersionAvailable();
		}
	}
}
